<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TImageValue类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_image_value-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TImageValue类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TImageValue 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_image_value.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a49b6ca82ebca809855d4694051eb26c2"><td class="memItemLeft" align="right" valign="top"><a id="a49b6ca82ebca809855d4694051eb26c2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TImageValue</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a49b6ca82ebca809855d4694051eb26c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17cbf02ef9e1fd0a3b08c49349767ed7"><td class="memItemLeft" align="right" valign="top"><a id="a17cbf02ef9e1fd0a3b08c49349767ed7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TImageValue</b> (const image_value_t *nativeObj)</td></tr>
<tr class="separator:a17cbf02ef9e1fd0a3b08c49349767ed7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bb86ce55dea9b6b9149559e8789462f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a0bb86ce55dea9b6b9149559e8789462f">SetImage</a> (const char *image)</td></tr>
<tr class="separator:a0bb86ce55dea9b6b9149559e8789462f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32c809eaaaa47b81b30226ca89f6b7da"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a32c809eaaaa47b81b30226ca89f6b7da">SetFormat</a> (const char *format)</td></tr>
<tr class="separator:a32c809eaaaa47b81b30226ca89f6b7da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6f17a0db932a9fde2ffafdc0d5217f2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#ae6f17a0db932a9fde2ffafdc0d5217f2">SetClickAddDelta</a> (float_t delta)</td></tr>
<tr class="separator:ae6f17a0db932a9fde2ffafdc0d5217f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30d815724b664902eff7518fffd07089"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a30d815724b664902eff7518fffd07089">SetValue</a> (float_t value)</td></tr>
<tr class="separator:a30d815724b664902eff7518fffd07089"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10474aa6585e7dd537406c687d1935d1"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a10474aa6585e7dd537406c687d1935d1">SetMin</a> (float_t min)</td></tr>
<tr class="separator:a10474aa6585e7dd537406c687d1935d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad995cb4a42dc964635a901499ae97030"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#ad995cb4a42dc964635a901499ae97030">SetMax</a> (float_t max)</td></tr>
<tr class="separator:ad995cb4a42dc964635a901499ae97030"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1accac40e18f5356d11a62c1d8930735"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a1accac40e18f5356d11a62c1d8930735">GetImage</a> () const</td></tr>
<tr class="separator:a1accac40e18f5356d11a62c1d8930735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a920b0433bb59e1399eda075a9b9ccf"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a0a920b0433bb59e1399eda075a9b9ccf">GetFormat</a> () const</td></tr>
<tr class="separator:a0a920b0433bb59e1399eda075a9b9ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae87f8ac91cafd87147858c3897315612"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#ae87f8ac91cafd87147858c3897315612">GetClickAddDelta</a> () const</td></tr>
<tr class="separator:ae87f8ac91cafd87147858c3897315612"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e7c53fb0149c0281f501f16e384b72d"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#a8e7c53fb0149c0281f501f16e384b72d">GetValue</a> () const</td></tr>
<tr class="separator:a8e7c53fb0149c0281f501f16e384b72d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc9c119e55ce6ef29e682c9d7c832101"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#afc9c119e55ce6ef29e682c9d7c832101">GetMin</a> () const</td></tr>
<tr class="separator:afc9c119e55ce6ef29e682c9d7c832101"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5492210a150074190d3b1e3c345192b"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#ad5492210a150074190d3b1e3c345192b">GetMax</a> () const</td></tr>
<tr class="separator:ad5492210a150074190d3b1e3c345192b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa7e0fb65c4ee37bc8d17b59a45dd1a75"><td class="memItemLeft" align="right" valign="top"><a id="aa7e0fb65c4ee37bc8d17b59a45dd1a75"></a>
static <a class="el" href="class_t_image_value.html">TImageValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aa7e0fb65c4ee37bc8d17b59a45dd1a75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab5bbb511ff6e436aabe07c0f84f11c0"><td class="memItemLeft" align="right" valign="top"><a id="aab5bbb511ff6e436aabe07c0f84f11c0"></a>
static <a class="el" href="class_t_image_value.html">TImageValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:aab5bbb511ff6e436aabe07c0f84f11c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06036a53cfc3cc6e2bdb0d3be2a8edcd"><td class="memItemLeft" align="right" valign="top"><a id="a06036a53cfc3cc6e2bdb0d3be2a8edcd"></a>
static <a class="el" href="class_t_image_value.html">TImageValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a06036a53cfc3cc6e2bdb0d3be2a8edcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae949c751051de84e32c6876a1705ff40"><td class="memItemLeft" align="right" valign="top"><a id="ae949c751051de84e32c6876a1705ff40"></a>
static <a class="el" href="class_t_image_value.html">TImageValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:ae949c751051de84e32c6876a1705ff40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad53d2b42a37c07125ff13edfff9c088b"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_image_value.html#ad53d2b42a37c07125ff13edfff9c088b">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:ad53d2b42a37c07125ff13edfff9c088b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>图片值控件。</p>
<p>可以用图片来表示如电池电量、WIFI信号强度和其它各种数值的值。</p>
<p>其原理如下：</p>
<p>1.把value以format为格式转换成字符串。 2.把每个字符与image(图片文件名前缀)映射成一个图片名。 3.最后把这些图片显示出来。</p>
<p>如果设置click_add_delta为非0，那么点击时自动增加指定的增量，值超过最大值时回到最小值, 或者值超过最小值时回到最大值。</p>
<p>image_value_t是widget\_t的子类控件，widget_t的函数均适用于image_value_t控件。</p>
<p>在xml中使用"image\_value"标签创建图片值控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">image_value</span>  <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;num_&quot;</span> /&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/image_value.xml">image_value</a></p>
<p>在c代码中使用函数image_value_create创建图片值控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/image_value.c">image_value demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框等等，不过一般情况并不需要。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ad53d2b42a37c07125ff13edfff9c088b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad53d2b42a37c07125ff13edfff9c088b">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TImageValue::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建image_value对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ae87f8ac91cafd87147858c3897315612"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae87f8ac91cafd87147858c3897315612">&#9670;&nbsp;</a></span>GetClickAddDelta()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TImageValue::GetClickAddDelta </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>点击时加上一个增量。 </p>

</div>
</div>
<a id="a0a920b0433bb59e1399eda075a9b9ccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a920b0433bb59e1399eda075a9b9ccf">&#9670;&nbsp;</a></span>GetFormat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TImageValue::GetFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>数值到字符串转换时的格式，缺省为"%d"。 </p>

</div>
</div>
<a id="a1accac40e18f5356d11a62c1d8930735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1accac40e18f5356d11a62c1d8930735">&#9670;&nbsp;</a></span>GetImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TImageValue::GetImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>图片名称的前缀。 </p>

</div>
</div>
<a id="ad5492210a150074190d3b1e3c345192b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5492210a150074190d3b1e3c345192b">&#9670;&nbsp;</a></span>GetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TImageValue::GetMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大值(如果设置了click_add_delta，到达最大值后回到最小值)。 </p>

</div>
</div>
<a id="afc9c119e55ce6ef29e682c9d7c832101"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc9c119e55ce6ef29e682c9d7c832101">&#9670;&nbsp;</a></span>GetMin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TImageValue::GetMin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最小值(如果设置了click_add_delta，到达最小值后回到最大值)。 </p>

</div>
</div>
<a id="a8e7c53fb0149c0281f501f16e384b72d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e7c53fb0149c0281f501f16e384b72d">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TImageValue::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>值。 </p>

</div>
</div>
<a id="ae6f17a0db932a9fde2ffafdc0d5217f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6f17a0db932a9fde2ffafdc0d5217f2">&#9670;&nbsp;</a></span>SetClickAddDelta()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TImageValue::SetClickAddDelta </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>delta</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置点击时加上的增量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delta</td><td>增量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a32c809eaaaa47b81b30226ca89f6b7da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32c809eaaaa47b81b30226ca89f6b7da">&#9670;&nbsp;</a></span>SetFormat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TImageValue::SetFormat </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置格式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>格式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0bb86ce55dea9b6b9149559e8789462f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bb86ce55dea9b6b9149559e8789462f">&#9670;&nbsp;</a></span>SetImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TImageValue::SetImage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置图片前缀。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>图片前缀。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad995cb4a42dc964635a901499ae97030"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad995cb4a42dc964635a901499ae97030">&#9670;&nbsp;</a></span>SetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TImageValue::SetMax </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置最大值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>最大值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a10474aa6585e7dd537406c687d1935d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10474aa6585e7dd537406c687d1935d1">&#9670;&nbsp;</a></span>SetMin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TImageValue::SetMin </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>min</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置最小值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>最小值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a30d815724b664902eff7518fffd07089"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30d815724b664902eff7518fffd07089">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TImageValue::SetValue </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
